repo.or.cz
/
andmenj-acm.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Namespacing everything to /UVa.
[andmenj-acm.git]
/
UVa
/
272 - TeX Quotes
/
272.cpp
blob
6c05e1dcae5b11642da20d95923aafcfe8a377c8
1
#include <stdio.h>
2
3
int
main
(){
4
char
c
;
5
bool
b
=
true
;
6
while
((
c
=
getchar
()) !=
EOF
){
7
if
(
c
==
'"'
){
8
printf
(
b
?
"``"
:
"''"
);
9
b
= !
b
;
10
}
else
11
putchar
(
c
);
12
}
13
return
0
;
14
}